//
//  DigitalClockAppDelegate.m
//  DigitalClock
//
//  Created by Kishikawa Katsumi on 09/10/22.
//  Copyright Kishikawa Katsumi 2009. All rights reserved.
//

#import "DigitalClockAppDelegate.h"
#import "DigitalClockViewController.h"

#define NUMBER_OF_PAGES 3

@implementation DigitalClockAppDelegate

@synthesize window;
@synthesize viewController;

- (void)applicationDidFinishLaunching:(UIApplication *)application {
    application.idleTimerDisabled = YES;
    
    viewController.twentyFourHourTime = YES;
    viewController.flashTimeSeparator = YES;
    
    viewController.highlightHolidays = YES;
    viewController.weekStartsMonday = NO;
    viewController.numberOfCalendarPages = NUMBER_OF_PAGES;
    
    [window addSubview:viewController.view];
    [window makeKeyAndVisible];
}

- (void)dealloc {
    [viewController release];
    [window release];
    [super dealloc];
}

@end
